package com.bsj.travel.exception.auth;

import com.bsj.travel.util.StringUtils;

/**
 * @author yinhao
 * @version 1.0
 * @description 未能通过权限认证异常
 * @date 2024/1/10
 */
public class NotPermissionException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    public NotPermissionException(String permission) {
        super(permission);
    }

    public NotPermissionException(String[] permissions) {
        super(StringUtils.join(permissions, ","));
    }
}
